simple fix of oracle stream API for RAW column#1498
Conversation
Signed-off-by: turakamou <turakamou@gmail.com>
|
can you describe in your commit : what is the issue and how the commit fixes it |
Oracle will return "[B" as class name for byte[], I don't know why the class loader is not able to load this. So when we try to call getObject for this column, it is called with null class argument. So let's return the correct class in this case. Signed-off-by: turakamou <turakamou@gmail.com>
|
PS: was I right to propose the commit for master as it will also be needed for 4.x |
|
And I fact I should have check the unitest on master, seems it doesn't compile. |
Fix unit test for master Signed-off-by: turakamou <turakamou@gmail.com>
|
Should be ok on this test on master |
|
let us run first CI and get @tsegismont to review the patch :-) |
tsegismont
left a comment
There was a problem hiding this comment.
Thank you for looking into this @turakamou
Can you take care of the fix with my suggestions?
Take into account tsegismont review comments Signed-off-by: turakamou <turakamou@gmail.com>
tsegismont
left a comment
There was a problem hiding this comment.
@turakamou thank you, this looks good to me!
|
@turakamou I'll wait for CI to complete before merging and will take care of backporting. Thanks again! |
|
@turakamou I'll take care of backporting. Thanks again! |
* simple fix of oracle stream API for RAW column Signed-off-by: turakamou <turakamou@gmail.com> * fixup! simple fix of oracle stream API for RAW column Oracle will return "[B" as class name for byte[], I don't know why the class loader is not able to load this. So when we try to call getObject for this column, it is called with null class argument. So let's return the correct class in this case. Signed-off-by: turakamou <turakamou@gmail.com> * fixup! simple fix of oracle stream API for RAW column Fix unit test for master Signed-off-by: turakamou <turakamou@gmail.com> * simple fix of oracle stream API for RAW column Take into account tsegismont review comments Signed-off-by: turakamou <turakamou@gmail.com> --------- Signed-off-by: turakamou <turakamou@gmail.com>
|
Thanks a lot to you too for the quick help and merge. |
Backported from eclipse-vertx#1498 Signed-off-by: turakamou <turakamou@gmail.com>
Backported from #1498 Signed-off-by: turakamou <turakamou@gmail.com> Co-authored-by: turakamou <turakamou@gmail.com>
Motivation:
At least version 4.5.13 has this issue
I encountered an exception while using vertx-oracle stream API to fetch data from a RAW column.
There is no issue with the regular "Prepared queries" API
The stack trace is:
Here is a simple fix along with a unit test to prove the fix work.